#include<vector>
#include<stack>
#include<string>
#include "FloatingTask.h"

enum CommandType {ADD, DISPLAY, DELETE, MODIFY, EXIT,SEARCH,SORT,INVALID};

class Storage{
private:
	string outFileName;
	vector<FloatingTask*> allTasks;
public:
	Storage();
	Storage(string);
	void readFile();
	void writeFile();
	void clear();
	bool sort();
	bool compareTasks(Task*, Task*);
	vector<Task*>& getAlltasks();
};